﻿<%@ Control Language="C#" ClassName="PhieuXuatFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
				<td class="literal">Input Time:</td>
				<td>
					<asp:TextBox runat="server" ID="dataInputTime" Text='<%# Bind("InputTime", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataInputTime" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataInputTime" runat="server" Display="Dynamic" ControlToValidate="dataInputTime" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Created At:</td>
				<td>
					<asp:TextBox runat="server" ID="dataCreatedAt" Text='<%# Bind("CreatedAt", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataCreatedAt" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataCreatedAt" runat="server" Display="Dynamic" ControlToValidate="dataCreatedAt" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Created By:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataCreatedBy" DataSourceID="CreatedByUserDataSource" DataTextField="Username" DataValueField="Id" SelectedValue='<%# Bind("CreatedBy") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:UserDataSource ID="CreatedByUserDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">Latest:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataLatest" DataSourceID="LatestPhieuXuatDataSource" DataTextField="InputTime" DataValueField="Id" SelectedValue='<%# Bind("Latest") %>' AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" />
					<data:PhieuXuatDataSource ID="LatestPhieuXuatDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">Quantity:</td>
				<td>
					<asp:TextBox runat="server" ID="dataQuantity" Text='<%# Bind("Quantity") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataQuantity" runat="server" Display="Dynamic" ControlToValidate="dataQuantity" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataQuantity" runat="server" Display="Dynamic" ControlToValidate="dataQuantity" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Type:</td>
				<td>
					<asp:TextBox runat="server" ID="dataType" Text='<%# Bind("Type") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataType" runat="server" Display="Dynamic" ControlToValidate="dataType" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Code:</td>
				<td>
					<asp:TextBox runat="server" ID="dataCode" Text='<%# Bind("Code") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataCode" runat="server" Display="Dynamic" ControlToValidate="dataCode" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>				
			
		</table>

	</ItemTemplate>
</asp:FormView>


